Skip to main content

launch url in widget

Type

command

Summary

Launches a url in a widget.

Syntax

launch url <url> in <widget>

Description

Use the launch url command to open a url within a widget. When launch url in widget is called, LiveCode sends a "OnLaunchURL" message to that widget with url as the parameter. The widget can then display the url in an appropriate manner.

note

The url must be a standards-compliant URL. In particular, file: urls must be of the form file://absolute path, and the path should be URL-encoded.

Parameters

NameTypeDescription

url

string

The URL to launch. The supported url types will vary depending on the capabilities of the widget.

widget

A widget reference.

Examples

launch url "http://www.livecode.com" in widget "myWebBrowser"

command: launch url, launch document

function: URLEncode

keyword: URL

object: widget

Compatibility and Support

Introduced

LiveCode 8.0

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?